@import '~styles/settings.scss';

.c-grants-projects-modal {
  width: 100%;
  color: $slate;
  font-weight: 300;
  font-size: rem(18px);
  line-height: 1.67;

  .header {
    padding: 0;
    margin: auto;

    > h1 {
      font-size: rem(35px);
      margin-bottom: rem(5px);
      line-height: 1.2;
    }

    .subtitle {
      > * {
        display: inline-block;
      }

      .tag {
        color: white;
        padding: 3px 10px;
        margin-right: 10px;
        font-size: 14px;
        text-transform: uppercase;
      }

      h2 {
        font-size: rem(14px);
        text-transform: uppercase;
        font-weight: 400;
        opacity: 0.5;
      }
    }
  }

  .image {
    margin-top: rem(20px);
    width: 100%;
    height: rem(250px);
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    @media screen and (min-width: $screen-m) {
      height: rem(400px);
    }

    > span {
      position: absolute;
      bottom: 10px;
      right: 10px;
    }

    > div {
      width: 100%;
      height: 100%;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }
  }

  .modal-image-slider {
    margin-top: rem(40px);
    margin-bottom: 0;

    .slick-dots {
      margin-bottom: 0;
    }

    .slick-list {
      overflow: hidden;
    }

    .slick-slide {
      padding: 0;
    }
  }

  .image-background {
    width: 100%;
    height: rem(500px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .content {
    padding: 30px 0;

    @media screen and (min-width: $screen-m) {
      padding: 50px 0;
    }

    .description {
      margin-bottom: 30px;
      font-size: 18px;
      line-height: 30px;
      font-weight: 400;

      a {
        color: $green-gfw;
      }
    }

    .links {
      color: $green-gfw;
      font-weight: 500;
      font-size: rem(14px);
      margin-bottom: rem(15px);
      display: block;
    }

    .categories {
      font-size: rem(14px);
      text-transform: uppercase;
      font-weight: 400;
      opacity: 0.5;
    }
  }
}
